home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / makefile.unx < prev    next >
Makefile  |  1995-12-30  |  2KB  |  88 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. #                Gershon Elber, Nov. 1991
  6. #
  7.  
  8. include makeflag.unx
  9.  
  10. #
  11. # All subdirectories to recurse into.
  12. #
  13. ALL_DIRS = xtra_lib misc_lib cagd_lib symb_lib triv_lib trim_lib \
  14.     prsr_lib geom_lib bool_lib circlink \
  15.     grapdrvs irit poly3d-h illustrt filters docs
  16.  
  17. #
  18. # Uncommend the following variable to only see the actions taken.
  19. #
  20. # VIEW_ONLY = -n
  21.  
  22. SHELL = /bin/sh
  23.  
  24. all:     binaries doc init
  25.  
  26. #
  27. # Print info regarding initialization.
  28. #
  29. init:
  30.     -for f in "" \
  31.           "Before executing the test suite and/or any usage of this" \
  32.           "package you will have to issue the following commands:" \
  33.           "" \
  34.           "set path = (\$$path $(BIN_DIR))" \
  35.           "setenv IRIT_PATH $(BIN_DIR)/" \
  36.           "setenv IRIT_DISPLAY \"x11drvs -s-\"" \
  37.           "" \
  38.           "and optionally the following commands:" \
  39.           "" \
  40.           "setenv IRIT_BIN_IPC 1" \
  41.           "setenv IRIT_SERVER_HOST `hostname`" \
  42.           "setenv IRIT_SERVER_PORT 5432" \
  43.           "" \
  44.           "or similar."; do \
  45.         (echo $$f) \
  46.     done
  47.  
  48. binaries:
  49.     -for f in $(ALL_DIRS); do \
  50.         (cd $$f \
  51.          && echo ----------- `pwd` ------------- \
  52.          && make $(VIEW_ONLY) -f makefile.unx install); \
  53.     done
  54.     -strip $(BIN_DIR)/*
  55.  
  56. #
  57. # Make hardcopy documentation.
  58. #
  59. doc:
  60.     (cd docs && \
  61.      make $(VIEW_ONLY) -f makefile.unx irit.tex irit.doc)
  62.  
  63. clean:
  64.     -rm .~* .\#*            # Emacs backup files.
  65.     -for f in $(ALL_DIRS); do \
  66.         (rm $$f/*.a $$f/*.o $$f/*mon.out $$f/.~* $$f/.\#* $$f/*mon.out); \
  67.     done
  68.     -rm poly3d-h/*.hdn
  69.     -rm irit/*.dat
  70.     -rm lib/*.a
  71.     -rm docs/irithlp docs/irithlp.o
  72.  
  73. #
  74. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  75. # and that IRIT_LCLDISP is set ('setenv IRIT_LCLDISP x11drvs').
  76. #
  77. test:
  78.     -(cd irit && irit demo)
  79.     -for f in poly3d-h illustrt filters; do \
  80.         (cd $$f && csh -f test-unx); \
  81.     done
  82.  
  83. depend:
  84.     -for f in $(ALL_DIRS); do \
  85.         (cd $$f && makedepend -Y -I../include -fmakefile.unx *.c \
  86.             && makedepend -Y -I../include -fmakefile.os2 *.c ) \
  87.     done
  88.